Re: [PATCHES] Updatable views - Mailing list pgsql-hackers

From Bernd Helmle
Subject Re: [PATCHES] Updatable views
Date
Msg-id BC7ECC8BDBC7299D9529BC48@[172.26.14.247]
Whole thread Raw
In response to Re: [PATCHES] Updatable views  ("Jaime Casanova" <systemguards@gmail.com>)
List pgsql-hackers
--On Donnerstag, August 24, 2006 11:02:43 -0500 Jaime Casanova
<systemguards@gmail.com> wrote:

> Actually the code delete implicit rules based on a field added to
> pg_rewrite but that catalog has a unique index on ev_class, rulename:
> "pg_rewrite_rel_rulename_index" UNIQUE, btree (ev_class, rulename)
>
> i guess bernd's comment is about this index giving an error if we try
> to insert the new rule with the same name on the same event...

No, this wasn't the problem, since we are going to drop any implicit
rule that collides with an user defined one (however, this approach is
discussable, but nobody has put his comments on this yet and i think this
is important for backwards compatibility). I don't think we need ev_kind in
the
index at all, in my opinion implicit and user defined rules of the same
event
shouldn't live together (_RETURN rules are marked as implicit ones now, too)

--
  Thanks

                    Bernd

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: PL/Perl: spi_prepare() and RETURNING
Next
From: Andrew Dunstan
Date:
Subject: Re: PL/Perl: spi_prepare() and RETURNING